package com.example.demo.web.rest.evt;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * Description:
 *
 * @Author zmf
 * @Date 2018/12/19  16:34
 */
@ApiModel("资源权限参数")
public class ResourceRelationEvt implements Serializable{
    private static final long serialVersionUID = 8622448765674250388L;
    @ApiModelProperty("关联对象ID")
    @NotNull
    private Long id;
    @ApiModelProperty("关联对象类型")
    @NotNull
    private String type;
    @ApiModelProperty("关联资源")
    private List<ResourceEvt> list;
    @ApiModelProperty("创建人")
    private String createUserName;
    @ApiModelProperty("创建时间")
    private String createTime;
    @ApiModelProperty("修改人")
    private String updateUserName;
    @ApiModelProperty("修改时间")
    private String updateTime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public List<ResourceEvt> getList() {
        return list;
    }

    public void setList(List<ResourceEvt> list) {
        this.list = list;
    }

    public String getCreateUserName() {
        return createUserName;
    }

    public void setCreateUserName(String createUserName) {
        this.createUserName = createUserName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateUserName() {
        return updateUserName;
    }

    public void setUpdateUserName(String updateUserName) {
        this.updateUserName = updateUserName;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "ResourceRelationEvt{" +
                "id=" + id +
                ", type='" + type + '\'' +
                ", list=" + list +
                ", createUserName='" + createUserName + '\'' +
                ", createTime='" + createTime + '\'' +
                ", updateUserName='" + updateUserName + '\'' +
                ", updateTime='" + updateTime + '\'' +
                '}';
    }
}
